package com.zzyl.controller.manager;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDataPageReqDto;
import com.zzyl.service.DeviceDataService;
import com.zzyl.vo.DeviceDataVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/device-data")
@Api("设备数据管理")
public class DeviceDataController {
    @Autowired
    private DeviceDataService deviceDataService;

    /**
     * 分页查询智能设备运行数据列表
     */
    @GetMapping(path = "/get-page")
    public ResponseResult<PageResponse<DeviceDataVo>> dataList(DeviceDataPageReqDto deviceDataPageReqDto){
        PageResponse<DeviceDataVo> list=deviceDataService.dataList(deviceDataPageReqDto);
        return ResponseResult.success(list);
    }


}
